<%@page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
	<head>
		<title>食物恋：我为吃狂</title>
		<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico">
		<meta content="text/html; charset=windows-1252"
			http-equiv="Content-Type" />
		<META HTTP-EQUIV="Cache-Control" CONTENT="max-age=0">
		<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
		<meta http-equiv="expires" content="0">
		<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
		<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
		<!-- 最新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
		<!-- 可选的Bootstrap主题文件（一般不用引入） -->
		<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap-theme.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>		
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
	</head>

	<body bgcolor="white" style="margin:0">
	<nav class="navbar navbar-inverse" role="navigation" style="margin-bottom:0">
  <!-- Brand and toggle get grouped for better mobile display -->
  <div class="container">
  <div class="navbar-header">
    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
      <span class="sr-only">Toggle navigation</span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
    </button>
    <a class="navbar-brand" href="index.do"><font style="font-family: Microsoft YaHei;color:#f0f0f0;">食物恋</font></a>
  </div>

  <!-- Collect the nav links, forms, and other content for toggling -->
  <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
    <ul class="nav navbar-nav">      
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">菜谱<b class="caret"></b></a>
        <ul class="dropdown-menu">
        	<c:forEach items="${categroyList}" var="category">
				<li>
					<a href="${pageContext.request.contextPath}/category.do?path=show&categoryId=${category.catid}">
						${category.name}
					</a>
				</li>
			</c:forEach>
        </ul>
      </li>
    </ul>

    <ul class="nav navbar-nav navbar-right">
    	<li><a href="${pageContext.request.contextPath}/item.do?path=viewCart"><span class="glyphicon glyphicon-shopping-cart"></span></a></li>
    	<li><a href="${pageContext.request.contextPath}/help.html"><span class="glyphicon glyphicon-question-sign"></span></a></li>
    	<c:choose>
							<c:when test="${empty user}">
								<li><a href="${pageContext.request.contextPath}/signon.do?path=checkSignon">登陆</a></li>
							</c:when>
							<c:otherwise>
								<li><a href="${pageContext.request.contextPath}/signon.do?path=off">注销</a></li>
							</c:otherwise>
		</c:choose>   		
	    <li>    
	      	<form class="navbar-form navbar-left" role="search">
	      		<div class="form-group">
	        		<input type="text" class="form-control" placeholder="Search">
	      		</div>
	     		<button type="submit" class="btn btn-default">Submit</button>
	    	</form>
	   	</li>
    </ul>
  </div><!-- /.navbar-collapse -->
  </div>
</nav>
	
</body>
		<!--<%@include file="../common/IncludeQuickHeader.jsp"%>-->